﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Diagnostics;

namespace NDF.Test
{
    [TestClass]
    public class StackTraceTest
    {
        [TestMethod]
        public void TestMethod1()
        {
            StackTrace stack = new StackTrace(true);
            var array = stack.GetFrames();
            foreach (var item in array)
            {
                Console.WriteLine(item.GetFileColumnNumber());
                Console.WriteLine(item.GetFileLineNumber());
                Console.WriteLine(item.GetFileName());
                Console.WriteLine(item.GetILOffset());
                Console.WriteLine(item.GetMethod());
                Console.WriteLine(item.GetNativeOffset());
                Console.WriteLine("---------------------------");
            }
        }
    }
}
